import request from '@/utils/request'

const api = {
  purviewList: '/purview/lists',
  purviewAdd: '/purview/add',
  service: '/service',
  permission: '/permission',
  permissionNoPager: '/permission/no-pager',
  orgTree: '/org/tree'
}

export function getPurviewList (parameter) {
    return request({
      url: api.purviewList,
      method: 'get',
      params: parameter
    })
}

export function purviewRole (parameter) {
    return request({
      url: api.purviewAdd,
      method: 'get',
      params: parameter
    })
}

export function purviewAdd (parameter) {
    return request({
      url: api.purviewAdd,
      method: 'post',
      data: parameter
    })
}

export function purviewGet (parameter) {
  return request({
    url: api.purviewAdd,
    method: 'get',
    params: parameter
  })
}
